package Info;

public class Person {
    private String name;
    private String sex;

    public void setPersonInfo(String name,String sex) {
        this.name = name;
        this.sex=sex;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public String getSex() {
        return sex;
    }
    public void getPersonInfo(){
        System.out.println("姓名："+name );
        System.out.println("性别："+sex);
    }
}
